﻿#region 命名空间

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Practices.EnterpriseLibrary.PolicyInjection;
using WinnerCMS.BLL;
using WinnerCMS.Model;
using WinnerCMS.Common;

#endregion

namespace WinnerCMS.WebUI.Admin.Controllers
{
    public class AnnexController : ApiController
    {
        public Annex UpLoad()
        {
            return new AnnexManage().UpLoad();
        }

        public Result Delete(int id, string downUrl)
        {
            return PolicyInjection.Create<AnnexManage>().Delete(id, downUrl);
        }

        public IList<Annex> GetList(string tempFlag, int contentId)
        {
            return new AnnexManage().DataList(tempFlag, contentId);
        }
    }
}